import requests
import requests as rq

data = {"name":'admin','num':3}

print(rq.get('http://127.0.0.1:8000/demo'))

r = rq.post('http://127.0.0.1:8000/tests/',data = data)
print(r)